import json


def read_data(da):
    list_data = []
    data_url = './data/' + da
    with open(data_url, 'r', encoding='utf-8') as f:
        json_data = json.load(f)
        print(json_data)
        for case_data in json_data:
            username = case_data.get('username')
            password = case_data.get('password')
            verify_code = case_data.get('verify_code')
            status_code = case_data.get('status_code')
            msg = case_data.get('msg')
            status = case_data.get('status')
            list_data.append((username, password, verify_code, status_code, msg, status))
        return list_data


